if __name__ == '__main__':
    def demo4():
        try:
            x = 1
            while x < 4:
                a = int(input("请输入66+99的结果："))
                if a == 66 + 99:
                    print("回答正确")
                    break
                elif x==3:
                    print(f"错误累计次数：{x},正确答案：{66+99}，程序结束")
                    break
                elif a!=66+99:
                    print(f"累计回答错误次数：{x},请重新作答")
                x += 1
                print("=" * 30)
        except:
            print("请输入正确的参数，请重新运行")
    demo4()
